#pragma once
#include "TimeHelper.h"
class IDGenerater
{
public:
	static void SetAppID(long value) {
		appID = value;
	}
	static long GetAppID() { return appID; }
	static long GenerateID() {
		long long tempTime = TimeHelper::ClientNowSeconds();
		return (appID << 48) | (tempTime << 16) + ++value;
	}
	 __declspec(property(get = GetAppID, put = SetAppID)) long  AppID;
protected:
	static long  appID;
private:
	static unsigned short value;
	
};

